package cn.itcalvin.sncoal.cth.domain;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import java.util.Date;
import javax.persistence.*;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import lombok.Data;

/**
 * 评分系统
 */
@ApiModel(description="评分系统")
@Data
@Table(name = "info_pf_system")
public class InfoPfSystem {
    /**
     * id
     */
    @Id
    @Column(name = "id")
    @ApiModelProperty(value="id")
    @NotNull(message = "id不能为null")
    private Long id;

    /**
     * 矿井Id
     */
    @Column(name = "mineId")
    @ApiModelProperty(value="矿井Id")
    @NotNull(message = "矿井Id不能为null")
    private Long mineId;

    /**
     * 评分任务Id
     */
    @Column(name = "pfId")
    @ApiModelProperty(value="评分任务Id")
    @NotNull(message = "评分任务Id不能为null")
    private Long pfId;

    /**
     * 系统ID
     */
    @Column(name = "systemId")
    @ApiModelProperty(value="系统ID")
    @NotNull(message = "系统ID不能为null")
    private Long systemId;
    /**
     * 系统名称
     */
    @Column(name = "systemName")
    @ApiModelProperty(value="系统名称")
    @Size(max = 255,message = "系统名称最大长度要小于 255")
    @NotBlank(message = "系统名称不能为空")
    private String systemName;
    /**
     * 自评业务人员
     */
    @Column(name = "pfPerson")
    @ApiModelProperty(value="自评业务人员")
    @Size(max = 50,message = "自评业务人员最大长度要小于 50")
    private String pfPerson;

    /**
     * 自评提交时间
     */
    @Column(name = "pfTime")
    @ApiModelProperty(value="自评提交时间")
    private Date pfTime;

    /**
     * 核验人
     */
    @Column(name = "hyPerson")
    @ApiModelProperty(value="核验人")
    @Size(max = 50,message = "核验人最大长度要小于 50")
    private String hyPerson;

    /**
     * 核验提交时间
     */
    @Column(name = "hyTime")
    @ApiModelProperty(value="核验提交时间")
    private Date hyTime;


    @Column(name = "`zpState`")
    @ApiModelProperty(value="评分任务状态 1:未提交 2:已提交")
    @NotNull(message = "评分任务状态 1:未提交 2:已提交")
    private Integer zpState;

    @Column(name = "`zpRemark`")
    @ApiModelProperty(value="自评凭证文件的url地址")
    @NotNull(message = "自评凭证文件的url地址")
    private String zpRemark;

    @Column(name = "`hyState`")
    @ApiModelProperty(value="评分任务状态 1:未提交 2:已提交")
    @NotNull(message = "评分任务状态 1:未提交 2:已提交")
    private Integer hyState;

    /**
     * 创建人
     */
    @Column(name = "createId")
    @ApiModelProperty(value="创建人")
    @NotNull(message = "创建人不能为null")
    private Long createId;

    /**
     * 创建时间
     */
    @Column(name = "createTime")
    @ApiModelProperty(value="创建时间")
    @NotNull(message = "创建时间不能为null")
    private Date createTime;

    /**
     * 创建人
     */
    @Column(name = "modifyId")
    @ApiModelProperty(value="创建人")
    private Long modifyId;

    /**
     * 创建时间
     */
    @Column(name = "modifyTime")
    @ApiModelProperty(value="创建时间")
    private Date modifyTime;

    /**
     * 创建人
     */
    @Column(name = "deleteId")
    @ApiModelProperty(value="创建人")
    private Long deleteId;

    /**
     * 创建时间
     */
    @Column(name = "deleteTime")
    @ApiModelProperty(value="创建时间")
    private Date deleteTime;

    /**
     * 是否删除
     */
    @Column(name = "isDelete")
    @ApiModelProperty(value="是否删除")
    @NotNull(message = "是否删除不能为null")
    private Boolean isDelete;
}